package com.zhangxu.microservice.auth.mapstruct;

import com.zhangxu.microservice.auth.biz.dto.AssignRoleDTO;
import com.zhangxu.microservice.auth.biz.dto.EmployeeRoleDTO;
import com.zhangxu.microservice.auth.vo.req.AssignRoleReq;
import com.zhangxu.microservice.auth.vo.resp.EmployeeRoleResp;
import org.mapstruct.Mapper;

/**
 * 员工角色关系Web层对象转换接口
 */
@Mapper(componentModel = "spring")
public interface EmployeeRoleWebConverter {

    /**
     * AssignRoleReq 转 AssignRoleDTO
     *
     * @param assignRoleReq 分配角色请求
     * @return 分配角色DTO
     */
    AssignRoleDTO toAssignRoleDTO(AssignRoleReq assignRoleReq);

    /**
     * EmployeeRoleDTO 转 EmployeeRoleResp
     *
     * @param employeeRoleDTO 员工角色关系DTO
     * @return 员工角色关系响应
     */
    EmployeeRoleResp toEmployeeRoleResp(EmployeeRoleDTO employeeRoleDTO);
}